<template>
	<view class="main">
		<view>
			<logistics-com :wlInfo="logInfo" />
		</view>
	</view>
</template>

<script>
	import {
		logisticsInfo
	} from '@/api/shoppingMall.js'
	import logisticsCom from '@/components/logistics-com.vue'

	export default {
		components: {
			logisticsCom
		},
		data() {
			return {
				orderId: '',
				logInfo: []
			}
		},

		onLoad(option) {
			this.orderId = option.id
			this.getInfo()
		},

		methods: {
			// 物流信息
			getInfo() {
				logisticsInfo({
					id: this.orderId
				}).then(res => {
					if (res.code == 200) {
						this.logInfo = res.msg
						console.log(this.logInfo, 'resssssss')
					}

				})
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>